package com.winter.common;

import java.util.List;

/**
 * 分页查询 公共返回包对象
 * @param <T>
 */
public class PageResponse<T> {

    /**
     * 当前页码索引
     * 从1开始计算
     */
    private int pageIndex;

    /**
     * 每页数量
     */
    private int pageSize;

    /**
     * 查询的总结果数量
     */
    private int recordCount;

    /**
     * 业务返回列表
     */
    private List<T> retList;

    public List<T> getRetList() {
        return retList;
    }

    public void setRetList(List<T> retList) {
        this.retList = retList;
    }

    public int getPageIndex() {
        return pageIndex;
    }

    public void setPageIndex(int pageIndex) {
        this.pageIndex = pageIndex;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getRecordCount() {
        return recordCount;
    }

    public void setRecordCount(int recordCount) {
        this.recordCount = recordCount;
    }
}
